import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home'
import Building from "../views/exception/Building";
import User from '../views/User'
import Know from '../views/know/Know'
import Info from '../views/info/Info'
import Space from '../views/space/Space'
import Create from '../views/create/Create'
import WebSave from '../views/space/WebSave';
import blog from "../views/space/blog/Blog";
import blogDetail from "../views/space/blog/BlogDetail";
import blogManage from "../views/space/blog/BlogManage";
import KnowledgeDetail from "../views/know/KnowledgeDetail";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      meta: {
        title: '创界--创意星域-百科式知识信息共享-创作分享',
        content: {
          keywords: '创界、创意星域、百科式、创意、星域、百科、知识信息共享、知识共享、信息共享、创意分享、博客记录',
          description: '创界--创意星域-百科式知识信息共享-创作分享网站。致力于知识信息共享、创作分享，不断广泛收集人类智慧、宇宙万物奥秘！'
        }
      }
    },
    {
      path: '/building',
      name: 'building',
      component: Building,
      meta: {
        title: '创界-建设中'
      }
    },
    {
      path: '/user',
      name: 'user',
      component: User,
      meta: {
        title: '创界-用户'
      }
    },
    {
      path: '/know',
      name: 'know',
      component: Know,
      meta: {
        title: '创界-知识'
      }
    },
    {
      path: '/know/detail',
      name: 'know/detail',
      component: KnowledgeDetail,
      meta: {
        title: '创界-知识'
      }
    },
    {
      path: '/info',
      name: 'info',
      component: Info,
      meta: {
        title: '创界-信息'
      }
    },
    {
      path: '/space',
      name: 'space',
      component: Space,
      meta: {
        title: '创界-星域'
      }
    },
    {
      path: '/create',
      name: 'create',
      component: Create,
      meta: {
        title: '创界-创作'
      }
    },
    {
      path: '/space/webSave',
      name: 'space/webSave',
      component: WebSave,
      meta: {
        title: '创界-导航'
      }
    },
    {
      path: '/space/blog',
      name: 'space/blog',
      component: blog,
      meta: {
        title: '创界-博客'
      }
    },
    {
      path: '/space/blog/detail',
      name: 'space/blog/detail',
      component: blogDetail,
      meta: {
        title: '创界-博客详情'
      }
    },
    {
      path: '/space/blog/manage',
      name: 'space/blog/manage',
      component: blogManage,
      meta: {
        title: '创界-博客管理'
      }
    }
  ]
})
